<template>
  <!-- 压缩面板 -->
  <div class="panel_box">
    <div class="infor">
      <!-- left -->
      <div class="itemImg">
        <img src="@/assets/imge/defeat_img.png" alt="tp" />
      </div>
      <!-- right -->
      <div class="itemTiter">
        <p><span>免费</span>山东2022年安工学习资料包.zip</p>
        <div class="down_row">
          <div class="left"><span>共3条 | 4.2MB</span></div>
        </div>
      </div>
    </div>
    <div class="state">免费</div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
.panel_box {
  position: fixed;
  z-index: 99;
  top: 5rem;
  width: 90%;
  transform: translateX(-50%);
  margin: 0 50%;
  border-radius: 0.3rem;
  background-color: #fff;
  padding: 0.8rem;
  box-sizing: border-box;
  box-shadow: 0px 5px 7px -2px #e6e6e6;
  .infor {
    width: 100%;
    height: 6rem;
    // margin: 1rem 0;
    // border-radius: 0.3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    // box-shadow: 0px 0px 7px 0px #e6e6e6;
    .itemImg {
      width: 7rem;
      height: 5rem;
      text-align: center;
      border-radius: 0.3rem;
      overflow: hidden;
      // border: 1px solid #e9e9e9;
      img {
        width: 100%;
        height: 100%;
      }
    }
    .itemTiter {
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      margin-left: 0.5rem;
      box-sizing: border-box;
      p {
        width: 100%;
        margin: 0;
        color: #454545;
        padding: 0;
        line-height: 1.7;
        font-size: 1rem;
        font-weight: bold;
        box-sizing: border-box;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        word-break: break-all;
        span {
          margin-right: 0.5rem;
          height: 1.15rem;
          color: red;
          font-weight: 600;
          padding: 0.06rem 0.4rem;
          font-size: 0.8rem;
          background: #fa303026;
          border-radius: 0.5rem 0;
          box-sizing: border-box;
        }
      }
      .down_row {
        display: flex;
        justify-content: space-between;
        flex: 1;
        align-items: center;
        .left {
          span {
            text-align: left;
            font-size: 0.8rem;
            color: #686868;
          }
        }
      }
    }
  }
  .state {
    display: flex;
    justify-content: end;
    color: red;
    font-size: 1.5rem;
  }
}
</style>
